package com.dome.dao;

import com.dome.mapper.ResourceAuthorityMapper;
import com.dome.mapper.RoleMapper;
import com.dome.model.ResourceAuthority;
import com.dome.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ResourceAuthorityDao {
    @Autowired
	ResourceAuthorityMapper resourceAuthorityMapper;
	public void deleteResourceAuthorityWH(List<Role> rolseList) {
		resourceAuthorityMapper.deleteResourceAuthorityWH(rolseList);
	}

	public void insertResourceAuthorityWH(List<ResourceAuthority> resourceAuthoritiesBJ) {
		  resourceAuthorityMapper.insertResourceAuthorityWH(resourceAuthoritiesBJ);
	}

	public List<ResourceAuthority> selectResourceAuthority(List<Role> rolseList) {
		return resourceAuthorityMapper.selectResourceAuthority(rolseList);
	}


}
